import AbstractCanvas from './canvas'
import config from '@/config'
import StrawModel from '@/model/straw'

class Straw extends AbstractCanvas<StrawModel> {
    public render(): void {
        this.createModels(config.straw.num, StrawModel)
        this.renderModels()
    }

    protected setCanvasId(): void {
        this.canvas.id = 'canvas-straw'
    }
}

export default new Straw()
